package com.sky.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.sky.common.File;
import com.sky.entity.DishFlavor;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class DishDTO implements Serializable {

    @ApiModelProperty("菜品主键id")
    private Long id;

    //菜品名称
    @ApiModelProperty("菜品名称")
    private String name;


    //菜品分类id
    @ApiModelProperty("菜品分类id")
    private Long categoryId;

    //菜品价格
    @ApiModelProperty("菜品价格")
    private BigDecimal price;

    //图片
    @ApiModelProperty("图片")
    private String image;

    //描述信息
    @ApiModelProperty("描述信息")
    private String description;

    //0 停售 1 起售
    @ApiModelProperty("菜品状态 0 起售 1 停售")
    private Integer status;

    //口味
    @ApiModelProperty("菜品口味")
    private List<DishFlavor> flavors = new ArrayList<>();

    /** 文件信息*/
    @TableField(exist = false)
    @DbIgnore
    private List<File> files;

}
